<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>资质证书 - 中显建设</title>
  <style>
    /* 1. 全局基础重置 + 背景统一 */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: "Microsoft YaHei", sans-serif;
    }

    body {
      background: url('/static/back.jpg') no-repeat center center fixed;
      background-size: cover;
      color: #333;
      line-height: 1.6;
      padding-top: 80px;
    }

    /* 2. 返回按钮样式 */
    .back-btn {
      position: fixed;
      top: 20px;
      left: 40px;
      background-color: rgba(52, 58, 64, 0.9);
      color: white;
      text-decoration: none;
      padding: 10px 20px;
      border-radius: 4px;
      font-size: 1em;
      transition: all 0.3s;
      z-index: 100;
    }

    .back-btn:hover {
      background-color: rgba(52, 58, 64, 1);
      transform: translateY(-2px);
    }

    /* 3. 证书容器布局优化 */
    .cert-container {
      max-width: 1600px;
      margin: 0 auto;
      padding: 40px;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 20px;
    }

    .cert-container img {
      width: 100%;
      height: auto;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      transition: transform 0.3s;
      object-fit: cover;
    }

    .cert-container img:hover {
      transform: scale(1.02);
    }

    /* 4. 关键：从c16开始新行，保持网格布局 */
    .cert-container::before {
      content: "";
      grid-column: 1 / -1;
      padding-top: 20px;
      border-top: 1px solid #eee;
    }

    .cert-container img:nth-child(16) {
      grid-column: 1; /* 强制c16从第一列开始 */
    }

    /* 5. 响应式适配 */
    @media (max-width: 768px) {
      .back-btn {
        left: 20px;
        padding: 8px 16px;
        font-size: 0.9em;
      }
      .cert-container {
        grid-template-columns: 1fr;
        padding: 20px;
      }
      .cert-container::before {
        padding-top: 10px;
        border-top: none;
      }
    }
  </style>
</head>
<body>
  <!-- 返回主页按钮 -->
  <a href="/index" class="back-btn">返回主页</a>

  <!-- 证书展示容器 -->
  <div class="cert-container">
    <img src="/static/c1.jpg" alt="资质证书1">
    <img src="/static/c2.jpg" alt="资质证书2">
    <img src="/static/c3.jpg" alt="资质证书3">
    <img src="/static/c4.jpg" alt="资质证书4">
    <img src="/static/c5.jpg" alt="资质证书5">
    <img src="/static/c6.jpg" alt="资质证书6">
    <img src="/static/c7.jpg" alt="资质证书7">
    <img src="/static/c8.jpg" alt="资质证书8">
    <img src="/static/c9.jpg" alt="资质证书9">
    <img src="/static/c10.jpg" alt="资质证书10">
    <img src="/static/c11.jpg" alt="资质证书11">
    <img src="/static/c12.jpg" alt="资质证书12">
    <img src="/static/c13.jpg" alt="资质证书13">
    <img src="/static/c14.jpg" alt="资质证书14">
    <img src="/static/c15.jpg" alt="资质证书15">
    <img src="/static/c16.jpg" alt="资质证书16"> <!-- 从这里开始新行 -->
    <img src="/static/c17.jpg" alt="资质证书17">
    <img src="/static/c18.jpg" alt="资质证书18">
    <img src="/static/c19.jpg" alt="资质证书19">
    <img src="/static/c20.jpg" alt="资质证书20">
    <img src="/static/c21.jpg" alt="资质证书21">
  </div>
</body>
</html>